import request from "@/axios/request";
//柱形图接口 市场规模
export function MarketSize(params) {
  return request({
    method: "GET",
    url: "/market/market_size",
    params,
  });
}

//柱形图接口 市场供需数量
export function MarketNum(params) {
  return request({
    method: "GET",
    url: "/market/supply_demand",
    params,
  });
}

//饼图接口 各类采购商采购次数占比
export function MarketProportion(params) {
  return request({
    method: "GET",
    url: "/Market/procurement_frequency",
    params,
  });
}

//饼图接口 各类采购商采购金额占比
export function MarketMoney(params) {
  return request({
    method: "GET",
    url: "/market/procurement_price",
    params,
  });
}

// 采购商排行
export function MarketPurchaser(params) {
  return request({
    method: "GET",
    url: "/market/purchase_ranking",
    params,
  });
}

// 供应商排行
export function MarketSupplier(params) {
  return request({
    method: "GET",
    url: "/market/supplier_ranking",
    params,
  });
}

// 代理机构排行
export function MarketAgency(params) {
  return request({
    method: "GET",
    url: "/market/agent_ranking",
    params,
  });
}

//    品牌销量
export function MarketPin(params) {
  return request({
    method: "GET",
    url: "Market/brand_sales",
    params,
  });
}
// 产品分析-销量分析"
// 数据概览-中招标分析
export function salesanalysisOverview1(params) {
  return request({
    method: "GET",
    url: "/Market/product_overview",
    params,
  });
}
// 产品分析-销量分析"
// 数据概览-销量分析
export function salesanalysisOverview(params) {
  return request({
    method: "GET",
    url: "/salesanalysis/data_overview",
    params,
  });
}
// 成交总金额趋势
export function salesanalysisMoney(params) {
  return request({
    method: "GET",
    url: "/salesanalysis/transaction_jssize",
    params,
  });
}

// 各类采购商成交总金额分布
export function salesanalysisTotalamount(params) {
  return request({
    method: "GET",
    url: "/salesanalysis/procurement_price",
    params,
  });
}

// 采购商排行
export function salesanalysisPurchaser(params) {
  return request({
    method: "GET",
    url: "/salesanalysis/purchase_ranking",
    params,
  });
}

// 供应商销量
export function salesanalysisPNumber(params) {
  return request({
    method: "GET",
    url: "/salesanalysis/supplier_ranking",
    params,
  });
}

// 企业分析
// 公司基础信息
export function businessText(params) {
  return request({
    method: "GET",
    url: "/business/info",
    params,
  });
}
// 招标数据概览
export function businessGai(params) {
  return request({
    method: "GET",
    url: "/business/tendering_overview",
    params,
  });
}

// 中标数据概览
export function businessZhong(params) {
  return request({
    method: "GET",
    url: "/business/tendering_overview_zb",
    params,
  });
}

// 招标采购金额趋势
export function businessAmount(params) {
  return request({
    method: "GET",
    url: "/business/purchase_price",
    params,
  });
}

//中标金额趋势
export function successfulBidder(params) {
  return request({
    method: "GET",
    url: "/business/purchase_price_zb",
    params,
  });
}

// 采购次数趋势
export function businessFrequency(params) {
  return request({
    method: "GET",
    url: "/business/purchase_count",
    params,
  });
}

// 中标采购次数趋势
export function zbNumber(params) {
  return request({
    method: "GET",
    url: "/business/purchase_count",
    params,
  });
}

// 合作的供应商
export function businessData(params) {
  return request({
    method: "GET",
    url: "/business/cooperation_supplier",
    params,
  });
}

// 中标合作的供应商
export function successData(params) {
  return request({
    method: "GET",
    url: "/business/cooperation_supplier_zb",
    params,
  });
}

// 市场地域分布 ?地图 ?采购次数排行 ?采购金额排行
export function businessMap(params) {
  return request({
    method: "GET",
    url: "/market/supply_region",
    params,
  });
}

//   中国地图  按照金额的
export function businessMapTabs(params) {
  return request({
    method: "GET",
    url: "/Market/supply_regiona",
    params,
  });
}

// 公共底部
export function footer(params) {
  return request({
    method: "GET",
    url: "/index/footer",
    params,
  });
}
